package com.crm.model.qo.reminditem;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.Date;

/**
 * @Description: 提醒事项QO
 * @Author lixq-f
 * @Date 2021/4/21
 * @Version V1.0
 **/
@Data
public class RemindItemQO {

    /*提醒事项ID*/
    private String remindItemId;

    /*设置时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date setTm;


    /*提醒事件*/
    @NotNull(message = "提醒内容不能为空")
    @Length(min=0, max=30, message="文字长度最多30个字符")
    private String remindEvent;





}
